import { Controller, Get, Inject } from '@nestjs/common';
import type { NotifyService } from '../notify/notice.interface';
import { Public } from 'src/decorators/is-public.decorator';

@Controller('notify-mail')
export class NotifyMailController {
  constructor(
    @Inject('NOTICE_SERVICE') private readonly noticeService: NotifyService,
  ) {}

  @Public()
  @Get('send')
  notify(): string {
    return this.noticeService.send('hello world');
  }
}
